package com.qianfeng.biz.impl;

import java.util.List;

import com.qianfeng.biz.IAddressBiz;
import com.qianfeng.dao.IAddressDao;
import com.qianfeng.dao.impl.AddressDaoImpl;
import com.qianfeng.entity.Address;

public class AddressBizImpl implements IAddressBiz {
	
	private IAddressDao addressDao = new AddressDaoImpl();

	@Override
	public List<Address> getAddressListByUserId(int userid) {
		return addressDao.getAddressListByUserId(userid);
	}

	@Override
	public boolean addAdd(Address ad) {
		
		return addressDao.addAdd(ad);
		
	}

	@Override
	public void update(Address address2) {
		addressDao.update(address2);
	}

}
